package com.blacksea.authserver.util;

import org.apache.commons.lang3.RandomStringUtils;

/**
 * RandomUtil
 *
 * @author blacksea3(jxt) 2021/4/12 21:12
 */
public class RandomUtil {

    private RandomUtil() {

    }

    public static String generateCode(int length) {
        return RandomStringUtils.randomAlphanumeric(length);
    }

    public static String generateToken(int length) {
        return RandomStringUtils.randomAlphanumeric(length);
    }
}
